package com.codermn.po;

/**
 * @author jxau_scf
 * @date 2021/5/27 - 19:29
 */
public class Phone {
    private String color;
    private String brand;
    private Integer price;

    public Phone(){
        System.out.println("调用无参构造方法！");
    }

    public Phone(String color, String brand, Integer price) {
        this.color = color;
        this.brand = brand;
        this.price = price;
        System.out.println("调用有参构造方法！");
    }

    public void call(String name){
        System.out.println("给" + name + "打电话");
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }
}
